<?php require(PUBLIC_PATH."header.php");?>
<div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
  <h2 class="text-center">用户注册</h2>
	<form action="<?php echo SITE_ROOT;?>/admin.php?c=user&m=add" method="post"  class="form-horizontal" enctype="multipart/form-data">
	    
        
		<div class="form-group">
            <label for="uname" class="col-xs-3 col-md-2 control-label">用户名</label>
                <div class="col-md-10 col-xs-9 ">
                        <input type="text" class="form-control" id="uname" placeholder="username" name="uname"  >
                </div>
        </div>
        <div class="form-group">
			<label for="password" class="col-xs-3 col-md-2 control-label">密码</label>
			<div class="col-md-10 col-xs-9">
				<input type="password" name="password" id="password" required>
			</div>
		</div>
		<div class="form-group">
			<label for="cpassword" class="col-xs-3 col-md-2 control-label">确认密码</label>
			<div class="col-md-10 col-xs-9">
				<input type="password" name="cpassword" id="cpassword" required>
			</div>
		</div>
        
		<div class="form-group">
			<label for="sex" class="col-xs-3 col-md-2 control-label">性别</label>
			<div class="col-md-10 col-xs-9">
				<label class="radio-inline">
					<input type="radio" name="gender" value="1" id="sex" checked>男
				</label>
				<label class="radio-inline">
					<input type="radio" name="gender" value="2" id="sex"
					checked>女
				</label>
			</div>
		</div>
		<div class="form-group">
		<label for="hobby" class="col-xs-3 col-md-2 control-label">兴趣</label>
		<div class="col-md-10 col-xs-9">
			<label class="checkbox-inline">
				<input type="checkbox" name="hobby[]" value="Swimming" id="hobby" checked>Swimming
			</label>
			<label class="checkbox-inline">
				<input type="checkbox" name="hobby[]" value="Singing">Singing
			</label>
			<label class="checkbox-inline">
				<input type="checkbox" name="hobby[]" value="Dancing">Dancing
			</label>
		</div>
	</div>
        <div class="form-group">
                    <div class="col-md-10 col-xs-9 col-md-offset-2 col-xs-offset-3">
                    <!-- 小设备可偏移 -->
                        <input type="submit" value="提交" class="btn btn-primary btn-lg">
                        <input type="reset" value="取消" class="btn btn-default">
                    </div>
        </div>	
<?php require(PUBLIC_PATH."footer.php"); ?>